import type { GeneratedEtsLibFile } from "../../types/generated";

export const FILE: GeneratedEtsLibFile = {
  path: 'ets/api/@ohos.account.appAccount.d.ts',
  content: "/*\n * Copyright (c) 2021-2023 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @file\n * @kit BasicServicesKit\n */\nimport type { AsyncCallback, Callback } from './@ohos.base';\nimport type Want from './@ohos.app.ability.Want';\nimport type rpc from './@ohos.rpc';\n/**\n * This module provides the capability to manage application accounts.\n *\n * @namespace appAccount\n * @syscap SystemCapability.Account.AppAccount\n * @since 7\n */\ndeclare namespace appAccount {\n    /**\n     * Obtains the AppAccountManager instance.\n     *\n     * @returns { AppAccountManager } Returns the instance of the AppAccountManager.\n     * @syscap SystemCapability.Account.AppAccount\n     * @since 7\n     */\n    function createAppAccountManager(): AppAccountManager;\n    /**\n     * Provides methods for managing application accounts.\n     *\n     * @interface AppAccountManager\n     * @syscap SystemCapability.Account.AppAccount\n     * @since 7\n     */\n    interface AppAccountManager {\n        /**\n         * Adds the account name and extra information of this application to the account management service.\n         * <p>\n         * Only the owner of the application account has the permission to call this method.\n         *\n         * @param { string } name - Indicates the name of the application account to add.\n         * @param { AsyncCallback<void> } callback - Asynchronous callback interface.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#createAccount\n         */\n        addAccount(name: string, callback: AsyncCallback<void>): void;\n        /**\n         * Adds the account name and extra information of this application to the account management service.\n         * <p>\n         * Only the owner of the application account has the permission to call this method.\n         *\n         * @param { string } name - Indicates the name of the application account to add.\n         * @param { string } extraInfo - Indicates the extra information of the application account to add.\n         *        The extra information cannot be sensitive information of the application account.\n         * @param { AsyncCallback<void> } callback - Asynchronous callback interface.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#createAccount\n         */\n        addAccount(name: string, extraInfo: string, callback: AsyncCallback<void>): void;\n        /**\n         * Adds the account name and extra information of this application to the account management service.\n         * <p>\n         * Only the owner of the application account has the permission to call this method.\n         *\n         * @param { string } name - Indicates the name of the application account to add.\n         * @param { string } [extraInfo] - Indicates the extra information of the application account to add.\n         *        The extra information cannot be sensitive information of the application account.\n         * @returns { Promise<void> } The promise returned by the function.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#createAccount\n         */\n        addAccount(name: string, extraInfo?: string): Promise<void>;\n        /**\n         * Creates the account name and extra information of this application to the account management service.\n         * <p>\n         * Only the owner of the application account has the permission to call this method.\n         *\n         * @param { string } name - Indicates the name of the application account to add.\n         * @param { AsyncCallback<void> } callback - Asynchronous callback interface.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name.\n         * @throws { BusinessError } 12300004 - Account already exists.\n         * @throws { BusinessError } 12300007 - The number of accounts reaches the upper limit.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        createAccount(name: string, callback: AsyncCallback<void>): void;\n        /**\n         * Creates the account name and extra information of this application to the account management service.\n         * <p>\n         * Only the owner of the application account has the permission to call this method.\n         *\n         * @param { string } name - Indicates the name of the application account to add.\n         * @param { CreateAccountOptions } options - Indicates the extra information of the application account to add.\n         *        The extra information cannot be sensitive information of the application account.\n         * @param { AsyncCallback<void> } callback - Asynchronous callback interface.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name or options.\n         * @throws { BusinessError } 12300004 - Account already exists.\n         * @throws { BusinessError } 12300007 - The number of accounts reaches the upper limit.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        createAccount(name: string, options: CreateAccountOptions, callback: AsyncCallback<void>): void;\n        /**\n         * Creates the account name and extra information of this application to the account management service.\n         * <p>\n         * Only the owner of the application account has the permission to call this method.\n         *\n         * @param { string } name - Indicates the name of the application account to add.\n         * @param { CreateAccountOptions } [options] - Indicates the extra information of the application account to add.\n         *        The extra information cannot be sensitive information of the application account.\n         * @returns { Promise<void> } The promise returned by the function.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name or options.\n         * @throws { BusinessError } 12300004 - Account already exists.\n         * @throws { BusinessError } 12300007 - The number of accounts reaches the upper limit.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        createAccount(name: string, options?: CreateAccountOptions): Promise<void>;\n        /**\n         * Adds an application account of a specified owner implicitly.\n         *\n         * @param { string } owner - Indicates the account owner of your application or third-party applications.\n         * @param { string } authType - Indicates the authentication type.\n         * @param { object } options - Indicates the authenticator-specific options for the request.\n         * @param { AuthenticatorCallback } callback - Indicates the authenticator callback.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#createAccountImplicitly\n         */\n        addAccountImplicitly(owner: string, authType: string, options: {\n            [key: string]: any;\n        }, callback: AuthenticatorCallback): void;\n        /**\n         * Creates an application account of a specified owner implicitly.\n         *\n         * @param { string } owner - Indicates the account owner of your application or third-party applications.\n         * @param { AuthCallback } callback - Indicates the authenticator callback.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid owner.\n         * @throws { BusinessError } 12300007 - The number of accounts reaches the upper limit.\n         * @throws { BusinessError } 12300010 - Account service busy.\n         * @throws { BusinessError } 12300113 - Authenticator service not found.\n         * @throws { BusinessError } 12300114 - Authenticator service exception.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        createAccountImplicitly(owner: string, callback: AuthCallback): void;\n        /**\n         * Creates an application account of a specified owner implicitly.\n         *\n         * @param { string } owner - Indicates the account owner of your application or third-party applications.\n         * @param { CreateAccountImplicitlyOptions } options - Indicates the authenticator-specific options for the request.\n         * @param { AuthCallback } callback - Indicates the authenticator callback.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid owner or options.\n         * @throws { BusinessError } 12300007 - The number of accounts reaches the upper limit.\n         * @throws { BusinessError } 12300010 - Account service busy.\n         * @throws { BusinessError } 12300113 - Authenticator service not found.\n         * @throws { BusinessError } 12300114 - Authenticator service exception.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        createAccountImplicitly(owner: string, options: CreateAccountImplicitlyOptions, callback: AuthCallback): void;\n        /**\n         * Deletes an application account from the account management service.\n         * <p>\n         * Only the owner of the application account has the permission to call this method.\n         *\n         * @param { string } name - Indicates the name of the application account to delete.\n         * @param { AsyncCallback<void> } callback - Asynchronous callback interface.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#removeAccount\n         */\n        deleteAccount(name: string, callback: AsyncCallback<void>): void;\n        /**\n         * Deletes an application account from the account management service.\n         * <p>\n         * Only the owner of the application account has the permission to call this method.\n         *\n         * @param { string } name - Indicates the name of the application account to delete.\n         * @returns { Promise<void> } The promise returned by the function.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#removeAccount\n         */\n        deleteAccount(name: string): Promise<void>;\n        /**\n         * Removes an application account from the account management service.\n         * <p>\n         * Only the owner of the application account has the permission to call this method.\n         *\n         * @param { string } name - Indicates the name of the application account to delete.\n         * @param { AsyncCallback<void> } callback - Asynchronous callback interface.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        removeAccount(name: string, callback: AsyncCallback<void>): void;\n        /**\n         * Removes an application account from the account management service.\n         * <p>\n         * Only the owner of the application account has the permission to call this method.\n         *\n         * @param { string } name - Indicates the name of the application account to delete.\n         * @returns { Promise<void> } The promise returned by the function.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        removeAccount(name: string): Promise<void>;\n        /**\n         * Disables a third-party application with the specified bundle name from\n         * accessing the given application account.\n         *\n         * @param { string } name - Indicates the name of the application account to disable access from\n         *        the third-party application.\n         * @param { string } bundleName - Indicates the bundle name of the third-party application.\n         * @param { AsyncCallback<void> } callback - Asynchronous callback interface.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#setAppAccess\n         */\n        disableAppAccess(name: string, bundleName: string, callback: AsyncCallback<void>): void;\n        /**\n         * Disables a third-party application with the specified bundle name from\n         * accessing the given application account.\n         *\n         * @param { string } name - Indicates the name of the application account to disable access from\n         *        the third-party application.\n         * @param { string } bundleName - Indicates the bundle name of the third-party application.\n         * @returns { Promise<void> } The promise returned by the function.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#setAppAccess\n         */\n        disableAppAccess(name: string, bundleName: string): Promise<void>;\n        /**\n         * Enables a third-party application with the specified bundle name to access the given application\n         * account for data query and listening.\n         *\n         * @param { string } name - Indicates the name of the application account.\n         * @param { string } bundleName - Indicates the bundle name of the third-party application.\n         * @param { AsyncCallback<void> } callback - Asynchronous callback interface.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#setAppAccess\n         */\n        enableAppAccess(name: string, bundleName: string, callback: AsyncCallback<void>): void;\n        /**\n         * Enables a third-party application with the specified bundle name to access the given application\n         * account for data query and listening.\n         *\n         * @param { string } name - Indicates the name of the application account.\n         * @param { string } bundleName - Indicates the bundle name of the third-party application.\n         * @returns { Promise<void> } The promise returned by the function.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#setAppAccess\n         */\n        enableAppAccess(name: string, bundleName: string): Promise<void>;\n        /**\n         * Sets a third-party application with the specified bundle name to access the given application\n         * account for data query and listening.\n         *\n         * @param { string } name - Indicates the name of the application account.\n         * @param { string } bundleName - Indicates the bundle name of the third-party application.\n         * @param { boolean } isAccessible - Indicates the accessibility flag, true for accessible, false for inaccessible.\n         * @param { AsyncCallback<void> } callback - Asynchronous callback interface.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name or bundleName.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12400001 - Application not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        /**\n         * Sets a third-party application with the specified bundle name to access the given application\n         * account for data query and listening.\n         *\n         * @param { string } name - Indicates the name of the application account.\n         * @param { string } bundleName - Indicates the bundle name of the third-party application.\n         * @param { boolean } isAccessible - Indicates the accessibility flag, true for accessible, false for inaccessible.\n         * @param { AsyncCallback<void> } callback - Asynchronous callback interface.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name or bundleName.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12400005 - The size of authorization list reaches the upper limit.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 14\n         */\n        setAppAccess(name: string, bundleName: string, isAccessible: boolean, callback: AsyncCallback<void>): void;\n        /**\n         * Sets a third-party application with the specified bundle name to access the given application\n         * account for data query and listening.\n         *\n         * @param { string } name - Indicates the name of the application account.\n         * @param { string } bundleName - Indicates the bundle name of the third-party application.\n         * @param { boolean } isAccessible - Indicates the accessibility flag, true for accessible, false for inaccessible.\n         * @returns { Promise<void> } The promise returned by the function.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name or bundleName.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12400001 - Application not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        /**\n         * Sets a third-party application with the specified bundle name to access the given application\n         * account for data query and listening.\n         *\n         * @param { string } name - Indicates the name of the application account.\n         * @param { string } bundleName - Indicates the bundle name of the third-party application.\n         * @param { boolean } isAccessible - Indicates the accessibility flag, true for accessible, false for inaccessible.\n         * @returns { Promise<void> } The promise returned by the function.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name or bundleName.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12400005 - The size of authorization list reaches the upper limit.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 14\n         */\n        setAppAccess(name: string, bundleName: string, isAccessible: boolean): Promise<void>;\n        /**\n         * Checks whether a third-party application with the specified bundle name is allowed to access\n         * the given application account for data query and listening.\n         *\n         * @param { string } name - Indicates the name of the application account.\n         * @param { string } bundleName - Indicates the bundle name of the third-party application.\n         * @param { AsyncCallback<boolean> } callback - Asynchronous callback interface.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name or bundleName.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        checkAppAccess(name: string, bundleName: string, callback: AsyncCallback<boolean>): void;\n        /**\n         * Checks whether a third-party application with the specified bundle name is allowed to access\n         * the given application account for data query and listening.\n         *\n         * @param { string } name - Indicates the name of the application account.\n         * @param { string } bundleName - Indicates the bundle name of the third-party application.\n         * @returns { Promise<boolean> } The promise returned by the function.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name or bundleName.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        checkAppAccess(name: string, bundleName: string): Promise<boolean>;\n        /**\n         * Checks whether a specified application account allows application data synchronization.\n         * <p>\n         * If the same OHOS account has logged in to multiple devices, these devices constitute a super device\n         * through the distributed networking. On the connected devices, you can call this method to check\n         * whether application data can be synchronized.\n         * <p>\n         *\n         * @permission ohos.permission.DISTRIBUTED_DATASYNC\n         * @param { string } name - Indicates the name of the application account.\n         * @param { AsyncCallback<boolean> } callback - Asynchronous callback interface.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#checkDataSyncEnabled\n         */\n        checkAppAccountSyncEnable(name: string, callback: AsyncCallback<boolean>): void;\n        /**\n         * Checks whether a specified application account allows application data synchronization.\n         * <p>\n         * If the same OHOS account has logged in to multiple devices, these devices constitute a super device\n         * through the distributed networking. On the connected devices, you can call this method to check\n         * whether application data can be synchronized.\n         * <p>\n         *\n         * @permission ohos.permission.DISTRIBUTED_DATASYNC\n         * @param { string } name - Indicates the name of the application account.\n         * @returns { Promise<boolean> } Returns {@code true} if application data synchronization is allowed; returns {@code false} otherwise.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#checkDataSyncEnabled\n         */\n        checkAppAccountSyncEnable(name: string): Promise<boolean>;\n        /**\n         * Checks whether application data synchronization is enabled for the specified account.\n         * <p>\n         * If the same OHOS account has logged in to multiple devices, these devices constitute a super device\n         * through the distributed networking. On the connected devices, you can call this method to check\n         * whether application data can be synchronized.\n         * <p>\n         *\n         * @permission ohos.permission.DISTRIBUTED_DATASYNC\n         * @param { string } name - Indicates the name of the application account.\n         * @param { AsyncCallback<boolean> } callback - Asynchronous callback interface.\n         * @throws { BusinessError } 201 - Permission denied.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        checkDataSyncEnabled(name: string, callback: AsyncCallback<boolean>): void;\n        /**\n         * Checks whether application data synchronization is enabled for the specified account.\n         * <p>\n         * If the same OHOS account has logged in to multiple devices, these devices constitute a super device\n         * through the distributed networking. On the connected devices, you can call this method to check\n         * whether application data can be synchronized.\n         * <p>\n         *\n         * @permission ohos.permission.DISTRIBUTED_DATASYNC\n         * @param { string } name - Indicates the name of the application account.\n         * @returns { Promise<boolean> } Returns {@code true} if application data synchronization is allowed; returns {@code false} otherwise.\n         * @throws { BusinessError } 201 - Permission denied.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        checkDataSyncEnabled(name: string): Promise<boolean>;\n        /**\n         * Sets the credential for this application account.\n         *\n         * @param { string } name - Indicates the name of the application account.\n         * @param { string } credentialType - Indicates the type of the credential to set.\n         * @param { string } credential - Indicates the credential to set.\n         * @param { AsyncCallback<void> } callback - Asynchronous callback interface.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#setCredential\n         */\n        setAccountCredential(name: string, credentialType: string, credential: string, callback: AsyncCallback<void>): void;\n        /**\n         * Sets the credential for this application account.\n         *\n         * @param { string } name - Indicates the name of the application account.\n         * @param { string } credentialType - Indicates the type of the credential to set.\n         * @param { string } credential - Indicates the credential to set.\n         * @returns { Promise<void> } The promise returned by the function.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#setCredential\n         */\n        setAccountCredential(name: string, credentialType: string, credential: string): Promise<void>;\n        /**\n         * Sets the credential for this application account.\n         *\n         * @param { string } name - Indicates the name of the application account.\n         * @param { string } credentialType - Indicates the type of the credential to set.\n         * @param { string } credential - Indicates the credential to set.\n         * @param { AsyncCallback<void> } callback - Asynchronous callback interface.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name, credentialType or credential.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        setCredential(name: string, credentialType: string, credential: string, callback: AsyncCallback<void>): void;\n        /**\n         * Sets the credential for this application account.\n         *\n         * @param { string } name - Indicates the name of the application account.\n         * @param { string } credentialType - Indicates the type of the credential to set.\n         * @param { string } credential - Indicates the credential to set.\n         * @returns { Promise<void> } The promise returned by the function.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name, credentialType or credential.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        setCredential(name: string, credentialType: string, credential: string): Promise<void>;\n        /**\n         * Sets extra information for this application account.\n         * <p>\n         * You can call this method when you forget the extra information of your application account or\n         * need to modify the extra information.\n         *\n         * @param { string } name - Indicates the name of the application account.\n         * @param { string } extraInfo - Indicates the extra information to set.\n         * @param { AsyncCallback<void> } callback - Asynchronous callback interface.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#setCustomData\n         */\n        setAccountExtraInfo(name: string, extraInfo: string, callback: AsyncCallback<void>): void;\n        /**\n         * Sets extra information for this application account.\n         * <p>\n         * You can call this method when you forget the extra information of your application account or\n         * need to modify the extra information.\n         *\n         * @param { string } name - Indicates the name of the application account.\n         * @param { string } extraInfo - Indicates the extra information to set.\n         * @returns { Promise<void> } The promise returned by the function.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#setCustomData\n         */\n        setAccountExtraInfo(name: string, extraInfo: string): Promise<void>;\n        /**\n         * Sets whether a specified application account allows application data synchronization.\n         * <p>\n         * If the same OHOS account has logged in to multiple devices, these devices constitute a super device\n         * through the distributed networking. On the connected devices, you can call this method to set whether to\n         * allow cross-device data synchronization. If synchronization is allowed, application data can be synchronized\n         * among these devices in the event of any changes related to the application account.\n         * If synchronization is not allowed, the application data is stored only on the local device.\n         * <p>\n         * <b>Application account-related changes</b>: adding or deleting an application account, setting extra\n         * information (such as updating a token), and setting data associated with this application account\n         * <p>\n         * <b>Application data that can be synchronized</b>: application account name, token,\n         * and data associated with this application account\n         * <p>\n         *\n         * @permission ohos.permission.DISTRIBUTED_DATASYNC\n         * @param { string } name - Indicates the name of the application account.\n         * @param { boolean } isEnable - Specifies whether to allow application data synchronization.\n         * @param { AsyncCallback<void> } callback - Asynchronous callback interface.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#setDataSyncEnabled\n         */\n        setAppAccountSyncEnable(name: string, isEnable: boolean, callback: AsyncCallback<void>): void;\n        /**\n         * Sets whether a specified application account allows application data synchronization.\n         * <p>\n         * If the same OHOS account has logged in to multiple devices, these devices constitute a super device\n         * through the distributed networking. On the connected devices, you can call this method to set whether to\n         * allow cross-device data synchronization. If synchronization is allowed, application data can be synchronized\n         * among these devices in the event of any changes related to the application account.\n         * If synchronization is not allowed, the application data is stored only on the local device.\n         * <p>\n         * <b>Application account-related changes</b>: adding or deleting an application account, setting extra\n         * information (such as updating a token), and setting data associated with this application account\n         * <p>\n         * <b>Application data that can be synchronized</b>: application account name, token,\n         * and data associated with this application account\n         * <p>\n         *\n         * @permission ohos.permission.DISTRIBUTED_DATASYNC\n         * @param { string } name - Indicates the name of the application account.\n         * @param { boolean } isEnable - Specifies whether to allow application data synchronization.\n         * @returns { Promise<void> } The promise returned by the function.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#setDataSyncEnabled\n         */\n        setAppAccountSyncEnable(name: string, isEnable: boolean): Promise<void>;\n        /**\n         * Sets whether a specified application account enables application data synchronization.\n         * <p>\n         * If the same OHOS account has logged in to multiple devices, these devices constitute a super device\n         * through the distributed networking. On the connected devices, you can call this method to set whether to\n         * enable cross-device data synchronization. If synchronization is enabled, application data can be synchronized\n         * among these devices in the event of any changes related to the application account.\n         * If synchronization is not enabled, the application data is stored only on the local device.\n         * <p>\n         * <b>Application account-related changes</b>: adding or deleting an application account, setting extra\n         * information (such as updating a token), and setting data associated with this application account\n         * <p>\n         * <b>Application data that can be synchronized</b>: application account name, token,\n         * and data associated with this application account\n         * <p>\n         *\n         * @permission ohos.permission.DISTRIBUTED_DATASYNC\n         * @param { string } name - Indicates the name of the application account.\n         * @param { boolean } isEnabled - Specifies whether to enable application data synchronization.\n         * @param { AsyncCallback<void> } callback - Asynchronous callback interface.\n         * @throws { BusinessError } 201 - Permission denied.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        setDataSyncEnabled(name: string, isEnabled: boolean, callback: AsyncCallback<void>): void;\n        /**\n         * Sets whether a specified application account enables application data synchronization.\n         * <p>\n         * If the same OHOS account has logged in to multiple devices, these devices constitute a super device\n         * through the distributed networking. On the connected devices, you can call this method to set whether to\n         * enable cross-device data synchronization. If synchronization is enabled, application data can be synchronized\n         * among these devices in the event of any changes related to the application account.\n         * If synchronization is not enabled, the application data is stored only on the local device.\n         * <p>\n         * <b>Application account-related changes</b>: adding or deleting an application account, setting extra\n         * information (such as updating a token), and setting data associated with this application account\n         * <p>\n         * <b>Application data that can be synchronized</b>: application account name, token,\n         * and data associated with this application account\n         * <p>\n         *\n         * @permission ohos.permission.DISTRIBUTED_DATASYNC\n         * @param { string } name - Indicates the name of the application account.\n         * @param { boolean } isEnabled - Specifies whether to enable application data synchronization.\n         * @returns { Promise<void> } The promise returned by the function.\n         * @throws { BusinessError } 201 - Permission denied.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        setDataSyncEnabled(name: string, isEnabled: boolean): Promise<void>;\n        /**\n         * Sets data associated with this application account.\n         *\n         * @param { string } name - Indicates the name of the application account.\n         * @param { string } key - Indicates the key of the data to set. The key can be customized.\n         * @param { string } value - Indicates the value of the data to set.\n         * @param { AsyncCallback<void> } callback - Asynchronous callback interface.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#setCustomData\n         */\n        setAssociatedData(name: string, key: string, value: string, callback: AsyncCallback<void>): void;\n        /**\n         * Sets data associated with this application account.\n         *\n         * @param { string } name - Indicates the name of the application account.\n         * @param { string } key - Indicates the key of the data to set. The key can be customized.\n         * @param { string } value - Indicates the value of the data to set.\n         * @returns { Promise<void> } The promise returned by the function.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#setCustomData\n         */\n        setAssociatedData(name: string, key: string, value: string): Promise<void>;\n        /**\n         * Sets data associated with this application account.\n         *\n         * @param { string } name - Indicates the name of the application account.\n         * @param { string } key - Indicates the key of the data to set. The key can be customized.\n         * @param { string } value - Indicates the value of the data to set.\n         * @param { AsyncCallback<void> } callback - Asynchronous callback interface.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name, key or value.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12400003 - The number of custom data reaches the upper limit.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        setCustomData(name: string, key: string, value: string, callback: AsyncCallback<void>): void;\n        /**\n         * Sets data associated with this application account.\n         *\n         * @param { string } name - Indicates the name of the application account.\n         * @param { string } key - Indicates the key of the data to set. The key can be customized.\n         * @param { string } value - Indicates the value of the data to set.\n         * @returns { Promise<void> } The promise returned by the function.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name, key or value.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12400003 - The number of custom data reaches the upper limit.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        setCustomData(name: string, key: string, value: string): Promise<void>;\n        /**\n         * Obtains information about all accessible accounts.\n         * This method applies to the following accounts:\n         * <br> Accounts of this application.\n         * <br> Accounts of third-party applications. To obtain such information,\n         * <br> your application must have gained authorization from the third-party applications.\n         *\n         * @permission ohos.permission.GET_ALL_APP_ACCOUNTS\n         * @param { AsyncCallback<Array<AppAccountInfo>> } callback - Asynchronous callback interface.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#getAllAccounts\n         */\n        getAllAccessibleAccounts(callback: AsyncCallback<Array<AppAccountInfo>>): void;\n        /**\n         * Obtains information about all accessible accounts.\n         * This method applies to the following accounts:\n         * <br> Accounts of this application.\n         * <br> Accounts of third-party applications. To obtain such information,\n         * <br> your application must have gained authorization from the third-party applications.\n         *\n         * @permission ohos.permission.GET_ALL_APP_ACCOUNTS\n         * @returns { Promise<Array<AppAccountInfo>> } Returns a list of application accounts.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#getAllAccounts\n         */\n        getAllAccessibleAccounts(): Promise<Array<AppAccountInfo>>;\n        /**\n         * Obtains information about all accessible accounts.\n         * This method applies to the following accounts:\n         * <br> Accounts of this application.\n         * <br> Accounts of third-party applications. To obtain such information,\n         * <br> your application must have gained authorization from the third-party applications or\n         * <br> have gained the ohos.permission.GET_ALL_APP_ACCOUNTS permission.\n         *\n         * @param { AsyncCallback<Array<AppAccountInfo>> } callback - Asynchronous callback interface. Returns a list of application accounts.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        getAllAccounts(callback: AsyncCallback<Array<AppAccountInfo>>): void;\n        /**\n         * Obtains information about all accessible accounts.\n         * This method applies to the following accounts:\n         * <br> Accounts of this application.\n         * <br> Accounts of third-party applications. To obtain such information,\n         * <br> your application must have gained authorization from the third-party applications or\n         * <br> have gained the ohos.permission.GET_ALL_APP_ACCOUNTS permission.\n         *\n         * @returns { Promise<Array<AppAccountInfo>> } Returns a list of application accounts.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        getAllAccounts(): Promise<Array<AppAccountInfo>>;\n        /**\n         * Obtains information about all accounts of a specified account owner.\n         * This method applies to the following accounts:\n         * <br> Accounts of this application.\n         * <br> Accounts of third-party applications. To obtain such information,\n         * <br> your application must have gained authorization from the third-party applications.\n         *\n         * @permission ohos.permission.GET_ALL_APP_ACCOUNTS\n         * @param { string } owner - Indicates the account owner of your application or third-party applications.\n         * @param { AsyncCallback<Array<AppAccountInfo>> } callback - Asynchronous callback interface. Returns a list of application accounts.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#getAccountsByOwner\n         */\n        getAllAccounts(owner: string, callback: AsyncCallback<Array<AppAccountInfo>>): void;\n        /**\n         * Obtains information about all accounts of a specified account owner.\n         * This method applies to the following accounts:\n         * <br> Accounts of this application.\n         * <br> Accounts of third-party applications. To obtain such information,\n         * <br> your application must have gained authorization from the third-party applications.\n         *\n         * @permission ohos.permission.GET_ALL_APP_ACCOUNTS\n         * @param { string } owner - Indicates the account owner of your application or third-party applications.\n         * @returns { Promise<Array<AppAccountInfo>> } Returns a list of application accounts.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#getAccountsByOwner\n         */\n        getAllAccounts(owner: string): Promise<Array<AppAccountInfo>>;\n        /**\n         * Gets information about all accounts of a specified account owner.\n         * This method applies to the following accounts:\n         * <br> Accounts of this application.\n         * <br> Accounts of third-party applications. To obtain such information,\n         * <br> your application must have gained authorization from the third-party applications or\n         * <br> have gained the ohos.permission.GET_ALL_APP_ACCOUNTS permission.\n         *\n         * @param { string } owner - Indicates the account owner of your application or third-party applications.\n         * @param { AsyncCallback<Array<AppAccountInfo>> } callback - Asynchronous callback interface. Returns a list of application accounts.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid owner.\n         * @throws { BusinessError } 12400001 - Application not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        /**\n         * Gets information about all accounts of a specified account owner.\n         * This method applies to the following accounts:\n         * <br> Accounts of this application.\n         * <br> Accounts of third-party applications. To obtain such information,\n         * <br> your application must have gained authorization from the third-party applications or\n         * <br> have gained the ohos.permission.GET_ALL_APP_ACCOUNTS permission.\n         *\n         * @param { string } owner - Indicates the account owner of your application or third-party applications.\n         * @param { AsyncCallback<Array<AppAccountInfo>> } callback - Asynchronous callback interface. Returns a list of application accounts.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid owner.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 14\n         */\n        getAccountsByOwner(owner: string, callback: AsyncCallback<Array<AppAccountInfo>>): void;\n        /**\n         * Gets information about all accounts of a specified account owner.\n         * This method applies to the following accounts:\n         * <br> Accounts of this application.\n         * <br> Accounts of third-party applications. To obtain such information,\n         * <br> your application must have gained authorization from the third-party applications or\n         * <br> have gained the ohos.permission.GET_ALL_APP_ACCOUNTS permission.\n         *\n         * @param { string } owner - Indicates the account owner of your application or third-party applications.\n         * @returns { Promise<Array<AppAccountInfo>> } Returns a list of application accounts.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid owner.\n         * @throws { BusinessError } 12400001 - Application not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        /**\n         * Gets information about all accounts of a specified account owner.\n         * This method applies to the following accounts:\n         * <br> Accounts of this application.\n         * <br> Accounts of third-party applications. To obtain such information,\n         * <br> your application must have gained authorization from the third-party applications or\n         * <br> have gained the ohos.permission.GET_ALL_APP_ACCOUNTS permission.\n         *\n         * @param { string } owner - Indicates the account owner of your application or third-party applications.\n         * @returns { Promise<Array<AppAccountInfo>> } Returns a list of application accounts.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid owner.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 14\n         */\n        getAccountsByOwner(owner: string): Promise<Array<AppAccountInfo>>;\n        /**\n         * Obtains the credential of this application account.\n         *\n         * @param { string } name - Indicates the name of the application account.\n         * @param { string } credentialType - Indicates the type of the credential to obtain.\n         * @param { AsyncCallback<string> } callback - Asynchronous callback interface. Returns the credential of the application account.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#getCredential\n         */\n        getAccountCredential(name: string, credentialType: string, callback: AsyncCallback<string>): void;\n        /**\n         * Obtains the credential of this application account.\n         *\n         * @param { string } name - Indicates the name of the application account.\n         * @param { string } credentialType - Indicates the type of the credential to obtain.\n         * @returns { Promise<string> } Returns the credential of the application account.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#getCredential\n         */\n        getAccountCredential(name: string, credentialType: string): Promise<string>;\n        /**\n         * Obtains the credential of this application account.\n         *\n         * @param { string } name - Indicates the name of the application account.\n         * @param { string } credentialType - Indicates the type of the credential to obtain.\n         * @param { AsyncCallback<string> } callback - Asynchronous callback interface. Returns the credential of the application account.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name or credentialType.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12300102 - Credential not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        getCredential(name: string, credentialType: string, callback: AsyncCallback<string>): void;\n        /**\n         * Obtains the credential of this application account.\n         *\n         * @param { string } name - Indicates the name of the application account.\n         * @param { string } credentialType - Indicates the type of the credential to obtain.\n         * @returns { Promise<string> } Returns the credential of the application account.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name or credentialType.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12300102 - Credential not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        getCredential(name: string, credentialType: string): Promise<string>;\n        /**\n         * Obtains extra information of this application account.\n         *\n         * @param { string } name - Indicates the name of the application account.\n         * @param { AsyncCallback<string> } callback - Asynchronous callback interface.\n         *   Returns the extra information of the account; returns {@code null} in other scenarios,\n         *   for example, if the account does not exist.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#getCustomData\n         */\n        getAccountExtraInfo(name: string, callback: AsyncCallback<string>): void;\n        /**\n         * Obtains extra information of this application account.\n         *\n         * @param { string } name - Indicates the name of the application account.\n         * @returns { Promise<string> } Returns the extra information of the account; returns {@code null} in other scenarios,\n         *         for example, if the account does not exist.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#getCustomData\n         */\n        getAccountExtraInfo(name: string): Promise<string>;\n        /**\n         * Obtains data associated with this application account.\n         *\n         * @param { string } name - Indicates the name of the application account.\n         * @param { string } key - Indicates the key of the data to obtain.\n         * @param { AsyncCallback<string> } callback - Asynchronous callback interface. Returns the associated data of the application account.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#getCustomData\n         */\n        getAssociatedData(name: string, key: string, callback: AsyncCallback<string>): void;\n        /**\n         * Obtains data associated with this application account.\n         *\n         * @param { string } name - Indicates the name of the application account.\n         * @param { string } key - Indicates the key of the data to obtain.\n         * @returns { Promise<string> } Returns the associated data of the application account.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#getCustomData\n         */\n        getAssociatedData(name: string, key: string): Promise<string>;\n        /**\n         * Obtains data associated with this application account.\n         *\n         * @param { string } name - Indicates the name of the application account.\n         * @param { string } key - Indicates the key of the data to obtain.\n         * @param { AsyncCallback<string> } callback - Asynchronous callback interface. Returns the associated data of the application account.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name or key.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12400002 - Custom data not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        getCustomData(name: string, key: string, callback: AsyncCallback<string>): void;\n        /**\n         * Obtains data associated with this application account.\n         *\n         * @param { string } name - Indicates the name of the application account.\n         * @param { string } key - Indicates the key of the data to obtain.\n         * @returns { Promise<string> } Returns the associated data of the application account.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name or key.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12400002 - Custom data not found\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        getCustomData(name: string, key: string): Promise<string>;\n        /**\n         * Obtains data associated with the specified account synchronously.\n         *\n         * @param { string } name - Indicates the name of the application account.\n         * @param { string } key - Indicates the key of the data to obtain.\n         * @returns { string } Returns the associated data of the application account.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name or key.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12400002 - Custom data not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        getCustomDataSync(name: string, key: string): string;\n        /**\n         * Subscribes to the change events of accounts of the specified owners.\n         * <p>\n         * When the account owner updates the account, the subscriber will receive a notification\n         * about the account change event.\n         *\n         * @param { 'change' } type - Event type.\n         * @param { Array<string> } owners - Indicates the account owners, which are specified\n         *        by {@link AppAccount#AppAccount(String name, String owner)}.\n         * @param { Callback<Array<AppAccountInfo>> } callback - Asynchronous callback interface.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#on\n         */\n        on(type: 'change', owners: Array<string>, callback: Callback<Array<AppAccountInfo>>): void;\n        /**\n         * Subscribes to the change events of accounts of the specified owners.\n         * <p>\n         * When the account owner updates the account, the subscriber will receive a notification\n         * about the account change event.\n         *\n         * @param { 'accountChange' } type - Event type.\n         * @param { Array<string> } owners - Indicates the account owners, which are specified\n         *        by {@link AppAccount#AppAccount(String name, String owner)}.\n         * @param { Callback<Array<AppAccountInfo>> } callback - Asynchronous callback interface.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid type or owners.\n         * @throws { BusinessError } 12400001 - Application not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        /**\n         * Subscribes to the change events of accounts of the specified owners.\n         * <p>\n         * When the account owner updates the account, the subscriber will receive a notification\n         * about the account change event.\n         *\n         * @param { 'accountChange' } type - Event type.\n         * @param { Array<string> } owners - Indicates the account owners, which are specified\n         *        by {@link AppAccount#AppAccount(String name, String owner)}.\n         * @param { Callback<Array<AppAccountInfo>> } callback - Asynchronous callback interface.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid type or owners.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 14\n         */\n        on(type: 'accountChange', owners: Array<string>, callback: Callback<Array<AppAccountInfo>>): void;\n        /**\n         * Unsubscribes from account events.\n         *\n         * @param { 'change' } type - Event type.\n         * @param { Callback<Array<AppAccountInfo>> } [callback] - Asynchronous callback interface.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#off\n         */\n        off(type: 'change', callback?: Callback<Array<AppAccountInfo>>): void;\n        /**\n         * Unsubscribes from account events.\n         *\n         * @param { 'accountChange' } type - Event type.\n         * @param { Callback<Array<AppAccountInfo>> } [callback] - Asynchronous callback interface.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid type.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        off(type: 'accountChange', callback?: Callback<Array<AppAccountInfo>>): void;\n        /**\n         * Authenticates an application account to get an oauth token.\n         *\n         * @param { string } name - Indicates the account name of your application or third-party applications.\n         * @param { string } owner - Indicates the account owner of your application or third-party applications.\n         * @param { string } authType - Indicates the authentication type.\n         * @param { object } options - Indicates the authenticator-specific options for the request.\n         * @param { AuthenticatorCallback } callback - Indicates the authenticator callback.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#auth\n         */\n        authenticate(name: string, owner: string, authType: string, options: {\n            [key: string]: any;\n        }, callback: AuthenticatorCallback): void;\n        /**\n         * Authenticates an application account to get an auth token.\n         *\n         * @param { string } name - Indicates the account name of your application or third-party applications.\n         * @param { string } owner - Indicates the account owner of your application or third-party applications.\n         * @param { string } authType - Indicates the authentication type.\n         * @param { AuthCallback } callback - Indicates the authenticator callback.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name, owner or authType.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12300010 - Account service busy.\n         * @throws { BusinessError } 12300113 - Authenticator service not found.\n         * @throws { BusinessError } 12300114 - Authenticator service exception.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        auth(name: string, owner: string, authType: string, callback: AuthCallback): void;\n        /**\n         * Authenticates an application account to get an auth token.\n         *\n         * @param { string } name - Indicates the account name of your application or third-party applications.\n         * @param { string } owner - Indicates the account owner of your application or third-party applications.\n         * @param { string } authType - Indicates the authentication type.\n         * @param { Record<string, Object> } options - Indicates the authenticator-specific options for the request.\n         * @param { AuthCallback } callback - Indicates the authenticator callback.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name, owner, authType or options.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12300010 - Account service busy.\n         * @throws { BusinessError } 12300113 - Authenticator service not found.\n         * @throws { BusinessError } 12300114 - Authenticator service exception.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        auth(name: string, owner: string, authType: string, options: Record<string, Object>, callback: AuthCallback): void;\n        /**\n         * Gets an oauth token with the specified authentication type from a particular application account.\n         *\n         * @param { string } name - Indicates the account name of your application or third-party applications.\n         * @param { string } owner - Indicates the account owner of your application or third-party applications.\n         * @param { string } authType - Indicates the authentication type.\n         * @param { AsyncCallback<string> } callback - Asynchronous callback interface. Returns an oauth token.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#getAuthToken\n         */\n        getOAuthToken(name: string, owner: string, authType: string, callback: AsyncCallback<string>): void;\n        /**\n         * Gets an oauth token with the specified authentication type from a particular application account.\n         *\n         * @param { string } name - Indicates the account name of your application or third-party applications.\n         * @param { string } owner - Indicates the account owner of your application or third-party applications.\n         * @param { string } authType - Indicates the authentication type.\n         * @returns { Promise<string> } Returns an oauth token.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#getAuthToken\n         */\n        getOAuthToken(name: string, owner: string, authType: string): Promise<string>;\n        /**\n         * Gets an auth token with the specified authentication type from a particular application account.\n         *\n         * @param { string } name - Indicates the account name of your application or third-party applications.\n         * @param { string } owner - Indicates the account owner of your application or third-party applications.\n         * @param { string } authType - Indicates the authentication type.\n         * @param { AsyncCallback<string> } callback - Asynchronous callback interface. Returns an auth token.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name, owner or authType.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12300107 - AuthType not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        getAuthToken(name: string, owner: string, authType: string, callback: AsyncCallback<string>): void;\n        /**\n         * Gets an auth token with the specified authentication type from a particular application account.\n         *\n         * @param { string } name - Indicates the account name of your application or third-party applications.\n         * @param { string } owner - Indicates the account owner of your application or third-party applications.\n         * @param { string } authType - Indicates the authentication type.\n         * @returns { Promise<string> } Returns an auth token.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name, owner or authType.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12300107 - AuthType not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        getAuthToken(name: string, owner: string, authType: string): Promise<string>;\n        /**\n         * Sets an oauth token with the specified authentication type for a particular account.\n         * <p>\n         * Only the owner of the application account has the permission to call this method.\n         *\n         * @param { string } name - Indicates the account name of your application.\n         * @param { string } authType - Indicates the authentication type.\n         * @param { string } token - Indicates the oauth token.\n         * @param { AsyncCallback<void> } callback - Asynchronous callback interface.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#setAuthToken\n         */\n        setOAuthToken(name: string, authType: string, token: string, callback: AsyncCallback<void>): void;\n        /**\n         * Sets an oauth token with the specified authentication type for a particular account.\n         * <p>\n         * Only the owner of the application account has the permission to call this method.\n         *\n         * @param { string } name - Indicates the account name of your application.\n         * @param { string } authType - Indicates the authentication type.\n         * @param { string } token - Indicates the oauth token.\n         * @returns { Promise<void> } The promise returned by the function.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#setAuthToken\n         */\n        setOAuthToken(name: string, authType: string, token: string): Promise<void>;\n        /**\n         * Sets an auth token with the specified authentication type for a particular account.\n         * <p>\n         * Only the owner of the application account has the permission to call this method.\n         *\n         * @param { string } name - Indicates the account name of your application.\n         * @param { string } authType - Indicates the authentication type.\n         * @param { string } token - Indicates the auth token.\n         * @param { AsyncCallback<void> } callback - Asynchronous callback interface.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name, authType or token.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12400004 - The number of tokens reaches the upper limit.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        setAuthToken(name: string, authType: string, token: string, callback: AsyncCallback<void>): void;\n        /**\n         * Sets an auth token with the specified authentication type for a particular account.\n         * <p>\n         * Only the owner of the application account has the permission to call this method.\n         *\n         * @param { string } name - Indicates the account name of your application.\n         * @param { string } authType - Indicates the authentication type.\n         * @param { string } token - Indicates the auth token.\n         * @returns { Promise<void> } The promise returned by the function.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name, authType or token.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12400004 - The number of tokens reaches the upper limit.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        setAuthToken(name: string, authType: string, token: string): Promise<void>;\n        /**\n         * Deletes an oauth token for the specified application account.\n         * <p>\n         * Only tokens visible to the caller application can be deleted.\n         *\n         * @param { string } name - Indicates the account name of your application or third-party applications.\n         * @param { string } owner - Indicates the account owner of your application or third-party applications.\n         * @param { string } authType - Indicates the authentication type.\n         * @param { string } token - Indicates the oauth token.\n         * @param { AsyncCallback<void> } callback Asynchronous callback interface.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#deleteAuthToken\n         */\n        deleteOAuthToken(name: string, owner: string, authType: string, token: string, callback: AsyncCallback<void>): void;\n        /**\n         * Deletes an oauth token for the specified application account.\n         * <p>\n         * Only tokens visible to the caller application can be deleted.\n         *\n         * @param { string } name - Indicates the account name of your application or third-party applications.\n         * @param { string } owner - Indicates the account owner of your application or third-party applications.\n         * @param { string } authType - Indicates the authentication type.\n         * @param { string } token - Indicates the oauth token.\n         * @returns { Promise<void> } The promise returned by the function.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#deleteAuthToken\n         */\n        deleteOAuthToken(name: string, owner: string, authType: string, token: string): Promise<void>;\n        /**\n         * Deletes an auth token for the specified application account.\n         * <p>\n         * Only tokens visible to the caller application can be deleted.\n         *\n         * @param { string } name - Indicates the account name of your application or third-party applications.\n         * @param { string } owner - Indicates the account owner of your application or third-party applications.\n         * @param { string } authType - Indicates the authentication type.\n         * @param { string } token - Indicates the auth token.\n         * @param { AsyncCallback<void> } callback - Asynchronous callback interface.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name, owner, authType or token.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12300107 - AuthType not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        deleteAuthToken(name: string, owner: string, authType: string, token: string, callback: AsyncCallback<void>): void;\n        /**\n         * Deletes an auth token for the specified application account.\n         * <p>\n         * Only tokens visible to the caller application can be deleted.\n         *\n         * @param { string } name - Indicates the account name of your application or third-party applications.\n         * @param { string } owner - Indicates the account owner of your application or third-party applications.\n         * @param { string } authType - Indicates the authentication type.\n         * @param { string } token - Indicates the auth token.\n         * @returns { Promise<void> } The promise returned by the function.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name, owner, authType or token.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12300107 - AuthType not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        deleteAuthToken(name: string, owner: string, authType: string, token: string): Promise<void>;\n        /**\n         * Sets the oauth token visibility of the specified authentication type to a third-party application.\n         * <p>\n         * Only the owner of the application account has the permission to call this method.\n         *\n         * @param { string } name - Indicates the account name of your application.\n         * @param { string } authType - Indicates the authentication type.\n         * @param { string } bundleName - Indicates the bundle name of the third-party application.\n         * @param { boolean } isVisible - Indicates the bool value of visibility.\n         * @param { AsyncCallback<void> } callback - Asynchronous callback interface.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#setAuthTokenVisibility\n         */\n        setOAuthTokenVisibility(name: string, authType: string, bundleName: string, isVisible: boolean, callback: AsyncCallback<void>): void;\n        /**\n         * Sets the oauth token visibility of the specified authentication type to a third-party application.\n         * <p>\n         * Only the owner of the application account has the permission to call this method.\n         *\n         * @param { string } name - Indicates the account name of your application.\n         * @param { string } authType - Indicates the authentication type.\n         * @param { string } bundleName - Indicates the bundle name of the third-party application.\n         * @param { boolean } isVisible - Indicates the bool value of visibility.\n         * @returns { Promise<void> } The promise returned by the function.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#setAuthTokenVisibility\n         */\n        setOAuthTokenVisibility(name: string, authType: string, bundleName: string, isVisible: boolean): Promise<void>;\n        /**\n         * Sets the auth token visibility of the specified authentication type to a third-party application.\n         * <p>\n         * Only the owner of the application account has the permission to call this method.\n         *\n         * @param { string } name - Indicates the account name of your application.\n         * @param { string } authType - Indicates the authentication type.\n         * @param { string } bundleName - Indicates the bundle name of the third-party application.\n         * @param { boolean } isVisible - Indicates the bool value of visibility.\n         * @param { AsyncCallback<void> } callback - Asynchronous callback interface.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name, authType or bundleName.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12300107 - AuthType not found.\n         * @throws { BusinessError } 12400001 - Application not found.\n         * @throws { BusinessError } 12400005 - The size of authorization list reaches the upper limit.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        /**\n         * Sets the auth token visibility of the specified authentication type to a third-party application.\n         * <p>\n         * Only the owner of the application account has the permission to call this method.\n         *\n         * @param { string } name - Indicates the account name of your application.\n         * @param { string } authType - Indicates the authentication type.\n         * @param { string } bundleName - Indicates the bundle name of the third-party application.\n         * @param { boolean } isVisible - Indicates the bool value of visibility.\n         * @param { AsyncCallback<void> } callback - Asynchronous callback interface.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name, authType or bundleName.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12300107 - AuthType not found.\n         * @throws { BusinessError } 12400005 - The size of authorization list reaches the upper limit.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 14\n         */\n        setAuthTokenVisibility(name: string, authType: string, bundleName: string, isVisible: boolean, callback: AsyncCallback<void>): void;\n        /**\n         * Sets the auth token visibility of the specified authentication type to a third-party application.\n         * <p>\n         * Only the owner of the application account has the permission to call this method.\n         *\n         * @param { string } name - Indicates the account name of your application.\n         * @param { string } authType - Indicates the authentication type.\n         * @param { string } bundleName - Indicates the bundle name of the third-party application.\n         * @param { boolean } isVisible - Indicates the bool value of visibility.\n         * @returns { Promise<void> } The promise returned by the function.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name, authType or bundleName.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12300107 - AuthType not found.\n         * @throws { BusinessError } 12400001 - Application not found.\n         * @throws { BusinessError } 12400005 - The size of authorization list reaches the upper limit.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        /**\n         * Sets the auth token visibility of the specified authentication type to a third-party application.\n         * <p>\n         * Only the owner of the application account has the permission to call this method.\n         *\n         * @param { string } name - Indicates the account name of your application.\n         * @param { string } authType - Indicates the authentication type.\n         * @param { string } bundleName - Indicates the bundle name of the third-party application.\n         * @param { boolean } isVisible - Indicates the bool value of visibility.\n         * @returns { Promise<void> } The promise returned by the function.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name, authType or bundleName.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12300107 - AuthType not found.\n         * @throws { BusinessError } 12400005 - The size of authorization list reaches the upper limit.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 14\n         */\n        setAuthTokenVisibility(name: string, authType: string, bundleName: string, isVisible: boolean): Promise<void>;\n        /**\n         * Checks the oauth token visibility of the specified authentication type for a third-party application.\n         * <p>\n         * Only the owner of the application account has the permission to call this method.\n         *\n         * @param { string } name - Indicates the account name of your application or third-party applications.\n         * @param { string } authType - Indicates the authentication type.\n         * @param { string } bundleName - Indicates the bundle name of the third-party application.\n         * @param { AsyncCallback<boolean> } callback - Asynchronous callback interface. Returns the bool value of visibility.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#checkAuthTokenVisibility\n         */\n        checkOAuthTokenVisibility(name: string, authType: string, bundleName: string, callback: AsyncCallback<boolean>): void;\n        /**\n         * Checks the oauth token visibility of the specified authentication type for a third-party application.\n         * <p>\n         * Only the owner of the application account has the permission to call this method.\n         *\n         * @param { string } name - Indicates the account name of your application or third-party applications.\n         * @param { string } authType - Indicates the authentication type.\n         * @param { string } bundleName - Indicates the bundle name of the third-party application.\n         * @returns { Promise<boolean> } Returns the bool value of visibility.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#checkAuthTokenVisibility\n         */\n        checkOAuthTokenVisibility(name: string, authType: string, bundleName: string): Promise<boolean>;\n        /**\n         * Checks the auth token visibility of the specified authentication type for a third-party application.\n         * <p>\n         * Only the owner of the application account has the permission to call this method.\n         *\n         * @param { string } name - Indicates the account name of your application or third-party applications.\n         * @param { string } authType - Indicates the authentication type.\n         * @param { string } bundleName - Indicates the bundle name of the third-party application.\n         * @param { AsyncCallback<boolean> } callback - Asynchronous callback interface.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name, authType or bundleName.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12300107 - AuthType not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        checkAuthTokenVisibility(name: string, authType: string, bundleName: string, callback: AsyncCallback<boolean>): void;\n        /**\n         * Checks the auth token visibility of the specified authentication type for a third-party application.\n         * <p>\n         * Only the owner of the application account has the permission to call this method.\n         *\n         * @param { string } name - Indicates the account name of your application or third-party applications.\n         * @param { string } authType - Indicates the authentication type.\n         * @param { string } bundleName - Indicates the bundle name of the third-party application.\n         * @returns { Promise<boolean> } Returns the bool value of visibility.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name, authType or bundleName.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12300107 - AuthType not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        checkAuthTokenVisibility(name: string, authType: string, bundleName: string): Promise<boolean>;\n        /**\n         * Gets all oauth tokens visible to the caller application.\n         *\n         * @param { string } name - Indicates the account name of your application or third-party applications.\n         * @param { string } owner - Indicates the account owner of your application or third-party applications.\n         * @param { AsyncCallback<Array<OAuthTokenInfo>> } callback - Asynchronous callback interface.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#getAllAuthTokens\n         */\n        getAllOAuthTokens(name: string, owner: string, callback: AsyncCallback<Array<OAuthTokenInfo>>): void;\n        /**\n         * Gets all oauth tokens visible to the caller application.\n         *\n         * @param { string } name - Indicates the account name of your application or third-party applications.\n         * @param { string } owner - Indicates the account owner of your application or third-party applications.\n         * @returns { Promise<Array<OAuthTokenInfo>> } Returns a list of oauth tokens visible to the caller application.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#getAllAuthTokens\n         */\n        getAllOAuthTokens(name: string, owner: string): Promise<Array<OAuthTokenInfo>>;\n        /**\n         * Gets all auth tokens visible to the caller application.\n         *\n         * @param { string } name - Indicates the account name of your application or third-party applications.\n         * @param { string } owner - Indicates the account owner of your application or third-party applications.\n         * @param { AsyncCallback<Array<AuthTokenInfo>> } callback - Asynchronous callback interface.\n         *   Returns a list of auth tokens visible to the caller application.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name or owner.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        getAllAuthTokens(name: string, owner: string, callback: AsyncCallback<Array<AuthTokenInfo>>): void;\n        /**\n         * Gets all auth tokens visible to the caller application.\n         *\n         * @param { string } name - Indicates the account name of your application or third-party applications.\n         * @param { string } owner - Indicates the account owner of your application or third-party applications.\n         * @returns { Promise<Array<AuthTokenInfo>> } Returns a list of auth tokens visible to the caller application.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name or owner.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        getAllAuthTokens(name: string, owner: string): Promise<Array<AuthTokenInfo>>;\n        /**\n         * Gets the open authorization list with a specified authentication type for a particular application account.\n         * <p>\n         * Only the owner of the application account has the permission to call this method.\n         *\n         * @param { string } name - Indicates the account name of your application.\n         * @param { string } authType - Indicates the authentication type.\n         * @param { AsyncCallback<Array<string>> } callback - Asynchronous callback interface.\n         *   Returns the open authorization list of the specified authentication type.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#getAuthList\n         */\n        getOAuthList(name: string, authType: string, callback: AsyncCallback<Array<string>>): void;\n        /**\n         * Gets the open authorization list with a specified authentication type for a particular application account.\n         * <p>\n         * Only the owner of the application account has the permission to call this method.\n         *\n         * @param { string } name - Indicates the account name of your application.\n         * @param { string } authType - Indicates the authentication type.\n         * @returns { Promise<Array<string>> } Returns the open authorization list of the specified authentication type.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#getAuthList\n         */\n        getOAuthList(name: string, authType: string): Promise<Array<string>>;\n        /**\n         * Gets the open authorization list with a specified authentication type for a particular application account.\n         * <p>\n         * Only the owner of the application account has the permission to call this method.\n         *\n         * @param { string } name - Indicates the account name of your application.\n         * @param { string } authType - Indicates the authentication type.\n         * @param { AsyncCallback<Array<string>> } callback - Asynchronous callback interface.\n         *   Returns the open authorization list of the specified authentication type.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name or authType.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12300107 - AuthType not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        getAuthList(name: string, authType: string, callback: AsyncCallback<Array<string>>): void;\n        /**\n         * Gets the open authorization list with a specified authentication type for a particular application account.\n         * <p>\n         * Only the owner of the application account has the permission to call this method.\n         *\n         * @param { string } name - Indicates the account name of your application.\n         * @param { string } authType - Indicates the authentication type.\n         * @returns { Promise<Array<string>> } Returns the open authorization list of the specified authentication type.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name or authType.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12300107 - AuthType not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        getAuthList(name: string, authType: string): Promise<Array<string>>;\n        /**\n         * Gets the authenticator callback with the specified session id.\n         * <p>\n         * Only the owner of the authenticator has the permission to call this method.\n         *\n         * @param { string } sessionId - Indicates the id of a authentication session.\n         * @param { AsyncCallback<AuthenticatorCallback> } callback - Asynchronous callback interface.\n         *   Returns the authenticator callback related to the session id.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#getAuthCallback\n         */\n        getAuthenticatorCallback(sessionId: string, callback: AsyncCallback<AuthenticatorCallback>): void;\n        /**\n         * Gets the authenticator callback with the specified session id.\n         * <p>\n         * Only the owner of the authenticator has the permission to call this method.\n         *\n         * @param { string } sessionId - Indicates the id of a authentication session.\n         * @returns { Promise<AuthenticatorCallback> } Returns the authenticator callback related to the session id.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#getAuthCallback\n         */\n        getAuthenticatorCallback(sessionId: string): Promise<AuthenticatorCallback>;\n        /**\n         * Obtains the authenticator callback with the specified session id.\n         * <p>\n         * Only the owner of the authenticator has the permission to call this method.\n         *\n         * @param { string } sessionId - Indicates the id of a authentication session.\n         * @param { AsyncCallback<AuthCallback> } callback - Asynchronous callback interface.\n         *   Returns the authenticator callback related to the session id.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid sessionId.\n         * @throws { BusinessError } 12300108 - Session not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        getAuthCallback(sessionId: string, callback: AsyncCallback<AuthCallback>): void;\n        /**\n         * Obtains the authenticator callback with the specified session id.\n         * <p>\n         * Only the owner of the authenticator has the permission to call this method.\n         *\n         * @param { string } sessionId - Indicates the id of a authentication session.\n         * @returns { Promise<AuthCallback> } Returns the authenticator callback related to the session id.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid sessionId.\n         * @throws { BusinessError } 12300108 - Session not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        getAuthCallback(sessionId: string): Promise<AuthCallback>;\n        /**\n         * Gets the authenticator information of an application account.\n         *\n         * @param { string } owner - Indicates the account owner of your application or third-party applications.\n         * @param { AsyncCallback<AuthenticatorInfo> } callback - Asynchronous callback interface.\n         *   Returns the authenticator information of the application account.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#queryAuthenticatorInfo\n         */\n        getAuthenticatorInfo(owner: string, callback: AsyncCallback<AuthenticatorInfo>): void;\n        /**\n         * Gets the authenticator information of an application account.\n         *\n         * @param { string } owner - Indicates the account owner of your application or third-party applications.\n         * @returns { Promise<AuthenticatorInfo> } Returns the authenticator information of the application account.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         * @deprecated since 9\n         * @useinstead appAccount.AppAccountManager#queryAuthenticatorInfo\n         */\n        getAuthenticatorInfo(owner: string): Promise<AuthenticatorInfo>;\n        /**\n         * Queries the authenticator information of an application account.\n         *\n         * @param { string } owner - Indicates the account owner of your application or third-party applications.\n         * @param { AsyncCallback<AuthenticatorInfo> } callback - Asynchronous callback interface.\n         *   Returns the authenticator information of the application account.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid owner.\n         * @throws { BusinessError } 12300113 - Authenticator service not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        queryAuthenticatorInfo(owner: string, callback: AsyncCallback<AuthenticatorInfo>): void;\n        /**\n         * Queries the authenticator information of an application account.\n         *\n         * @param { string } owner - Indicates the account owner of your application or third-party applications.\n         * @returns { Promise<AuthenticatorInfo> } Returns the authenticator information of the application account.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid owner.\n         * @throws { BusinessError } 12300113 - Authenticator service not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        queryAuthenticatorInfo(owner: string): Promise<AuthenticatorInfo>;\n        /**\n         * Checks whether a particular account has all specified labels.\n         *\n         * @param { string } name - Indicates the account name.\n         * @param { string } owner - Indicates the account owner.\n         * @param { Array<string> } labels - Indicates an array of labels to check.\n         * @param { AsyncCallback<boolean> } callback - Asynchronous callback interface.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name, owner or labels.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12300010 - Account service busy.\n         * @throws { BusinessError } 12300113 - Authenticator service not found.\n         * @throws { BusinessError } 12300114 - Authenticator service exception.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        checkAccountLabels(name: string, owner: string, labels: Array<string>, callback: AsyncCallback<boolean>): void;\n        /**\n         * Checks whether a particular account has all specified labels.\n         *\n         * @param { string } name - Indicates the account name.\n         * @param { string } owner - Indicates the account owner.\n         * @param { Array<string> } labels - Indicates an array of labels to check.\n         * @returns { Promise<boolean> } The promise returned by the function.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name, owner or labels.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12300010 - Account service busy.\n         * @throws { BusinessError } 12300113 - Authenticator service not found.\n         * @throws { BusinessError } 12300114 - Authenticator service exception.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        checkAccountLabels(name: string, owner: string, labels: Array<string>): Promise<boolean>;\n        /**\n         * Deletes the credential of the specified application account.\n         *\n         * @param { string } name - Indicates the account name.\n         * @param { string } credentialType - Indicates the type of the credential to delete.\n         * @param { AsyncCallback<void> } callback - Asynchronous callback interface.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name or credentialType.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12300102 - Credential not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        deleteCredential(name: string, credentialType: string, callback: AsyncCallback<void>): void;\n        /**\n         * Deletes the credential of the specified application account.\n         *\n         * @param { string } name - Indicates the account name.\n         * @param { string } credentialType - Indicates the type of the credential to delete.\n         * @returns { Promise<void> } The promise returned by the function.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name or credentialType.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12300102 - Credential not found.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        deleteCredential(name: string, credentialType: string): Promise<void>;\n        /**\n         * Selects a list of accounts that satisfied with the specified options.\n         *\n         * @param { SelectAccountsOptions } options - Indicates the options for selecting account.\n         * @param { AsyncCallback<Array<AppAccountInfo>> } callback - Asynchronous callback interface.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid options.\n         * @throws { BusinessError } 12300010 - Account service busy.\n         * @throws { BusinessError } 12300114 - Authenticator service exception.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        selectAccountsByOptions(options: SelectAccountsOptions, callback: AsyncCallback<Array<AppAccountInfo>>): void;\n        /**\n         * Selects a list of accounts that satisfied with the specified options.\n         *\n         * @param { SelectAccountsOptions } options - Indicates the options for selecting account.\n         * @returns { Promise<Array<AppAccountInfo>> } Returns a list of accounts.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid options.\n         * @throws { BusinessError } 12300010 - Account service busy.\n         * @throws { BusinessError } 12300114 - Authenticator service exception.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        selectAccountsByOptions(options: SelectAccountsOptions): Promise<Array<AppAccountInfo>>;\n        /**\n         * Verifies the credential to ensure the user is the owner of the specified account.\n         *\n         * @param { string } name - Indicates the account name.\n         * @param { string } owner - Indicates the account owner.\n         * @param { AuthCallback } callback - Indicates the authenticator callback.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name or owner.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12300010 - Account service busy.\n         * @throws { BusinessError } 12300113 - Authenticator service not found.\n         * @throws { BusinessError } 12300114 - Authenticator service exception.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        verifyCredential(name: string, owner: string, callback: AuthCallback): void;\n        /**\n         * Verifies the credential to ensure the user is the owner of the specified account.\n         *\n         * @param { string } name - Indicates the account name.\n         * @param { string } owner - Indicates the account owner.\n         * @param { VerifyCredentialOptions } options - Indicates the options for verifying credential.\n         * @param { AuthCallback } callback - Indicates the authenticator callback.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid name, owner or options.\n         * @throws { BusinessError } 12300003 - Account not found.\n         * @throws { BusinessError } 12300010 - Account service busy.\n         * @throws { BusinessError } 12300113 - Authenticator service not found.\n         * @throws { BusinessError } 12300114 - Authenticator service exception.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        verifyCredential(name: string, owner: string, options: VerifyCredentialOptions, callback: AuthCallback): void;\n        /**\n         * Sets properties for the specified account authenticator.\n         * <p>\n         * If the authenticator supports setting its properties,\n         * the caller will normally be redirected to an Ability specified by Want for property setting.\n         *\n         * @param { string } owner - Indicates the owner of authenticator.\n         * @param { AuthCallback } callback - Indicates the authenticator callback.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid owner.\n         * @throws { BusinessError } 12300010 - Account service busy.\n         * @throws { BusinessError } 12300113 - Authenticator service not found.\n         * @throws { BusinessError } 12300114 - Authenticator service exception.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        setAuthenticatorProperties(owner: string, callback: AuthCallback): void;\n        /**\n         * Sets properties for the specified account authenticator.\n         * <p>\n         * If the authenticator supports setting its properties,\n         * the caller will normally be redirected to an Ability specified by Want for property setting.\n         *\n         * @param { string } owner - Indicates the owner of authenticator.\n         * @param { SetPropertiesOptions } options - Indicates the options for setting properties.\n         * @param { AuthCallback } callback - Indicates the authenticator callback.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified.\n         * <br> 2. Incorrect parameter types.\n         * @throws { BusinessError } 12300001 - System service exception.\n         * @throws { BusinessError } 12300002 - Invalid owner or options.\n         * @throws { BusinessError } 12300010 - Account service busy.\n         * @throws { BusinessError } 12300113 - Authenticator service not found.\n         * @throws { BusinessError } 12300114 - Authenticator service exception.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        setAuthenticatorProperties(owner: string, options: SetPropertiesOptions, callback: AuthCallback): void;\n    }\n    /**\n     * Provides basic information of an application account, including the account owner and name.\n     *\n     * @interface AppAccountInfo\n     * @syscap SystemCapability.Account.AppAccount\n     * @since 7\n     */\n    interface AppAccountInfo {\n        /**\n         * The owner an application account.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         */\n        owner: string;\n        /**\n         * The name an application account.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 7\n         */\n        name: string;\n    }\n    /**\n     * Provides basic information of an oauth token, including the authentication type and token value.\n     *\n     * @interface OAuthTokenInfo\n     * @syscap SystemCapability.Account.AppAccount\n     * @since 8\n     * @deprecated since 9\n     * @useinstead appAccount.AuthTokenInfo\n     */\n    interface OAuthTokenInfo {\n        /**\n         * The authentication type.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         * @deprecated since 9\n         */\n        authType: string;\n        /**\n         * The token value.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         * @deprecated since 9\n         */\n        token: string;\n    }\n    /**\n     * Provides basic information of an auth token, including the authentication type and token value.\n     *\n     * @interface AuthTokenInfo\n     * @syscap SystemCapability.Account.AppAccount\n     * @since 9\n     */\n    interface AuthTokenInfo {\n        /**\n         * The authentication type.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        authType: string;\n        /**\n         * The token value.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        token: string;\n        /**\n         * The account to which the token belongs.\n         *\n         * @type { ?AppAccountInfo }\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        account?: AppAccountInfo;\n    }\n    /**\n     * Provides basic information of an authenticator, including the authenticator owner, icon id and label id.\n     *\n     * @interface AuthenticatorInfo\n     * @syscap SystemCapability.Account.AppAccount\n     * @since 8\n     */\n    interface AuthenticatorInfo {\n        /**\n         * The owner of an authenticator.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         */\n        owner: string;\n        /**\n         * The icon id of an authenticator.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         */\n        iconId: number;\n        /**\n         * The label id of an authenticator.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         */\n        labelId: number;\n    }\n    /**\n     * Provides the definition of the authentication result.\n     *\n     * @interface AuthResult\n     * @syscap SystemCapability.Account.AppAccount\n     * @since 9\n     */\n    interface AuthResult {\n        /**\n         * The account information.\n         *\n         * @type { ?AppAccountInfo }\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        account?: AppAccountInfo;\n        /**\n         * The token information.\n         *\n         * @type { ?AuthTokenInfo }\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        tokenInfo?: AuthTokenInfo;\n    }\n    /**\n     * Provides the available options for creating an account.\n     *\n     * @interface CreateAccountOptions\n     * @syscap SystemCapability.Account.AppAccount\n     * @since 9\n     */\n    interface CreateAccountOptions {\n        /**\n         * The custom data for creating an account,\n         * which can be further modified by function setCustomData.\n         *\n         * @type { ?Record<string, string> }\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        customData?: Record<string, string>;\n    }\n    /**\n     * Provides the available options for creating an account implicitly.\n     *\n     * @interface CreateAccountImplicitlyOptions\n     * @syscap SystemCapability.Account.AppAccount\n     * @since 9\n     */\n    interface CreateAccountImplicitlyOptions {\n        /**\n         * The required labels for creating an account.\n         *\n         * @type { ?Array<string> }\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        requiredLabels?: Array<string>;\n        /**\n         * The authentication type.\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        authType?: string;\n        /**\n         * The authenticator-specific parameters.\n         * The list of reserved parameter name:\n         * 1. Constants.KEY_CALLER_BUNDLE_NAME;\n         * The above parameters are set by the appAccount management service and can be used for identify the caller.\n         *\n         * @type { ?Record<string, Object> }\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        parameters?: Record<string, Object>;\n    }\n    /**\n     * Provides the available options for selecting accounts.\n     *\n     * @interface SelectAccountsOptions\n     * @syscap SystemCapability.Account.AppAccount\n     * @since 9\n     */\n    interface SelectAccountsOptions {\n        /**\n         * The list of accounts allowed to be selected.\n         *\n         * @type { ?Array<AppAccountInfo> }\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        allowedAccounts?: Array<AppAccountInfo>;\n        /**\n         * The list of account owners, whose accounts allowed to be selected.\n         *\n         * @type { ?Array<string> }\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        allowedOwners?: Array<string>;\n        /**\n         * The labels required for the selected accounts.\n         *\n         * @type { ?Array<string> }\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        requiredLabels?: Array<string>;\n    }\n    /**\n     * Provides the available options for verifying credential.\n     *\n     * @interface VerifyCredentialOptions\n     * @syscap SystemCapability.Account.AppAccount\n     * @since 9\n     */\n    interface VerifyCredentialOptions {\n        /**\n         * The credential type to be verified.\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        credentialType?: string;\n        /**\n         * The credential to be verified.\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        credential?: string;\n        /**\n         * The authenticator-specific parameters.\n         * The list of reserved parameter name:\n         * 1. Constants.KEY_CALLER_BUNDLE_NAME;\n         * The above parameters are set by the appAccount management service and can be used for identify the caller.\n         *\n         * @type { ?Record<string, Object> }\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        parameters?: Record<string, Object>;\n    }\n    /**\n     * Provides the available options for setting properties.\n     *\n     * @interface SetPropertiesOptions\n     * @syscap SystemCapability.Account.AppAccount\n     * @since 9\n     */\n    interface SetPropertiesOptions {\n        /**\n         * The properties to be set.\n         *\n         * @type { ?Record<string, Object> }\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        properties?: Record<string, Object>;\n        /**\n         * The authenticator-specific parameters.\n         * The list of reserved parameter name:\n         * 1. Constants.KEY_CALLER_BUNDLE_NAME;\n         * The above parameters are set by the appAccount management service and can be used for identify the caller.\n         *\n         * @type { ?Record<string, Object> }\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        parameters?: Record<string, Object>;\n    }\n    /**\n     * Provides constants definition.\n     *\n     * @enum { string } Constants\n     * @syscap SystemCapability.Account.AppAccount\n     * @since 8\n     */\n    enum Constants {\n        /**\n         * Indicates the action for adding account implicitly.\n         *\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         * @deprecated since 9\n         * @useinstead appAccount.Constants#ACTION_CREATE_ACCOUNT_IMPLICITLY\n         */\n        ACTION_ADD_ACCOUNT_IMPLICITLY = 'addAccountImplicitly',\n        /**\n         * Indicates the action for authenticating.\n         *\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         * @deprecated since 9\n         * @useinstead appAccount.Constants#ACTION_AUTH\n         */\n        ACTION_AUTHENTICATE = 'authenticate',\n        /**\n         * Indicates the action for creating account implicitly.\n         *\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        ACTION_CREATE_ACCOUNT_IMPLICITLY = 'createAccountImplicitly',\n        /**\n         * Indicates the action for authenticating.\n         *\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        ACTION_AUTH = 'auth',\n        /**\n         * Indicates the action for verifying credential.\n         *\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        ACTION_VERIFY_CREDENTIAL = 'verifyCredential',\n        /**\n         * Indicates the action for set authenticator properties.\n         *\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        ACTION_SET_AUTHENTICATOR_PROPERTIES = 'setAuthenticatorProperties',\n        /**\n         * Indicates the key of name.\n         *\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         */\n        KEY_NAME = 'name',\n        /**\n         * Indicates the key of owner.\n         *\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         */\n        KEY_OWNER = 'owner',\n        /**\n         * Indicates the key of token.\n         *\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         */\n        KEY_TOKEN = 'token',\n        /**\n         * Indicates the key of action.\n         *\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         */\n        KEY_ACTION = 'action',\n        /**\n         * Indicates the key of authentication type.\n         *\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         */\n        KEY_AUTH_TYPE = 'authType',\n        /**\n         * Indicates the key of session id.\n         *\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         */\n        KEY_SESSION_ID = 'sessionId',\n        /**\n         * Indicates the key of caller pid.\n         *\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         */\n        KEY_CALLER_PID = 'callerPid',\n        /**\n         * Indicates the key of caller uid.\n         *\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         */\n        KEY_CALLER_UID = 'callerUid',\n        /**\n         * Indicates the key of caller bundle name.\n         *\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         */\n        KEY_CALLER_BUNDLE_NAME = 'callerBundleName',\n        /**\n         * Indicates the key of required labels.\n         *\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        KEY_REQUIRED_LABELS = 'requiredLabels',\n        /**\n         * Indicates the key of boolean result.\n         *\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        KEY_BOOLEAN_RESULT = 'booleanResult'\n    }\n    /**\n     * Provides result code definition.\n     *\n     * @enum { number } ResultCode\n     * @syscap SystemCapability.Account.AppAccount\n     * @since 8\n     * @deprecated since 9\n     */\n    enum ResultCode {\n        /**\n        * Indicates the success result.\n        *\n        * @syscap SystemCapability.Account.AppAccount\n        * @since 8\n        * @deprecated since 9\n        */\n        SUCCESS = 0,\n        /**\n        * Indicates the result of account not exist.\n        *\n        * @syscap SystemCapability.Account.AppAccount\n        * @since 8\n        * @deprecated since 9\n        */\n        ERROR_ACCOUNT_NOT_EXIST = 10001,\n        /**\n        * Indicates the result of account service exception.\n        *\n        * @syscap SystemCapability.Account.AppAccount\n        * @since 8\n        * @deprecated since 9\n        */\n        ERROR_APP_ACCOUNT_SERVICE_EXCEPTION = 10002,\n        /**\n        * Indicates the result of password is invalid.\n        *\n        * @syscap SystemCapability.Account.AppAccount\n        * @since 8\n        * @deprecated since 9\n        */\n        ERROR_INVALID_PASSWORD = 10003,\n        /**\n        * Indicates the result of request is invalid.\n        *\n        * @syscap SystemCapability.Account.AppAccount\n        * @since 8\n        * @deprecated since 9\n        */\n        ERROR_INVALID_REQUEST = 10004,\n        /**\n        * Indicates the result of response is invalid.\n        *\n        * @syscap SystemCapability.Account.AppAccount\n        * @since 8\n        * @deprecated since 9\n        */\n        ERROR_INVALID_RESPONSE = 10005,\n        /**\n        * Indicates the result of network exception.\n        *\n        * @syscap SystemCapability.Account.AppAccount\n        * @since 8\n        * @deprecated since 9\n        */\n        ERROR_NETWORK_EXCEPTION = 10006,\n        /**\n        * Indicates the result of network exception.\n        *\n        * @syscap SystemCapability.Account.AppAccount\n        * @since 8\n        * @deprecated since 9\n        */\n        ERROR_OAUTH_AUTHENTICATOR_NOT_EXIST = 10007,\n        /**\n        * Indicates the result of auth has been canceled.\n        *\n        * @syscap SystemCapability.Account.AppAccount\n        * @since 8\n        * @deprecated since 9\n        */\n        ERROR_OAUTH_CANCELED = 10008,\n        /**\n        * Indicates the result of auth list is too large.\n        *\n        * @syscap SystemCapability.Account.AppAccount\n        * @since 8\n        * @deprecated since 9\n        */\n        ERROR_OAUTH_LIST_TOO_LARGE = 10009,\n        /**\n        * Indicates the result of auth service is busy.\n        *\n        * @syscap SystemCapability.Account.AppAccount\n        * @since 8\n        * @deprecated since 9\n        */\n        ERROR_OAUTH_SERVICE_BUSY = 10010,\n        /**\n        * Indicates the result of auth service exception.\n        *\n        * @syscap SystemCapability.Account.AppAccount\n        * @since 8\n        * @deprecated since 9\n        */\n        ERROR_OAUTH_SERVICE_EXCEPTION = 10011,\n        /**\n        * Indicates the result of auth session is not exist.\n        *\n        * @syscap SystemCapability.Account.AppAccount\n        * @since 8\n        * @deprecated since 9\n        */\n        ERROR_OAUTH_SESSION_NOT_EXIST = 10012,\n        /**\n        * Indicates the result of auth timeout.\n        *\n        * @syscap SystemCapability.Account.AppAccount\n        * @since 8\n        * @deprecated since 9\n        */\n        ERROR_OAUTH_TIMEOUT = 10013,\n        /**\n        * Indicates the result of token is not exist.\n        *\n        * @syscap SystemCapability.Account.AppAccount\n        * @since 8\n        * @deprecated since 9\n        */\n        ERROR_OAUTH_TOKEN_NOT_EXIST = 10014,\n        /**\n        * Indicates the result of token is too many.\n        *\n        * @syscap SystemCapability.Account.AppAccount\n        * @since 8\n        * @deprecated since 9\n        */\n        ERROR_OAUTH_TOKEN_TOO_MANY = 10015,\n        /**\n        * Indicates the result of not supported action.\n        *\n        * @syscap SystemCapability.Account.AppAccount\n        * @since 8\n        * @deprecated since 9\n        */\n        ERROR_OAUTH_UNSUPPORT_ACTION = 10016,\n        /**\n        * Indicates the result of not supported auth type.\n        *\n        * @syscap SystemCapability.Account.AppAccount\n        * @since 8\n        * @deprecated since 9\n        */\n        ERROR_OAUTH_UNSUPPORT_AUTH_TYPE = 10017,\n        /**\n        * Indicates the result of permission denied.\n        *\n        * @syscap SystemCapability.Account.AppAccount\n        * @since 8\n        * @deprecated since 9\n        */\n        ERROR_PERMISSION_DENIED = 10018\n    }\n    /**\n     * Provides methods for authenticator callback.\n     *\n     * @interface AuthenticatorCallback\n     * @syscap SystemCapability.Account.AppAccount\n     * @since 8\n     * @deprecated since 9\n     * @useinstead AppAccount.AuthCallback\n     */\n    interface AuthenticatorCallback {\n        /**\n         * Notifies the client of the authentication result.\n         *\n         * @type { function }\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         * @deprecated since 9\n         */\n        onResult: (code: number, result: {\n            [key: string]: any;\n        }) => void;\n        /**\n         * Notifies the client that the authentication request need to be redirected.\n         *\n         * @type { function }\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         * @deprecated since 9\n         */\n        onRequestRedirected: (request: Want) => void;\n    }\n    /**\n     * Provides methods for authentication callback.\n     *\n     * @interface AuthCallback\n     * @syscap SystemCapability.Account.AppAccount\n     * @since 9\n     */\n    interface AuthCallback {\n        /**\n         * Notifies the client of the authentication result.\n         *\n         * @type { function }\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        onResult: (code: number, result?: AuthResult) => void;\n        /**\n         * Notifies the client that the authentication request need to be redirected.\n         *\n         * @type { function }\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        onRequestRedirected: (request: Want) => void;\n        /**\n         * Notifies the client that the request is continued.\n         *\n         * @type { ?function }\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        onRequestContinued?: () => void;\n    }\n    /**\n     * Provides methods for authenticator.\n     *\n     * @syscap SystemCapability.Account.AppAccount\n     * @since 8\n     * @name Authenticator\n     */\n    class Authenticator {\n        /**\n         * Adds an application account of a specified owner implicitly.\n         *\n         * @param { string } authType - Indicates the authentication type.\n         * @param { string } callerBundleName - Indicates the caller bundle name.\n         * @param { object } options - Indicates the authenticator-specific options for the request.\n         * @param { AuthenticatorCallback } callback - Indicates the authenticator callback.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         * @deprecated since 9\n         * @useinstead appAccount.Authenticator#createAccountImplicitly\n         */\n        addAccountImplicitly(authType: string, callerBundleName: string, options: {\n            [key: string]: any;\n        }, callback: AuthenticatorCallback): void;\n        /**\n         * Creates an application account of a specified owner implicitly.\n         *\n         * @param { CreateAccountImplicitlyOptions } options - Indicates the authenticator-specific options for the request.\n         * @param { AuthCallback } callback - Indicates the authenticator callback.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        createAccountImplicitly(options: CreateAccountImplicitlyOptions, callback: AuthCallback): void;\n        /**\n         * Authenticates an application account to get an oauth token.\n         *\n         * @param { string } name - Indicates the account name.\n         * @param { string } authType - Indicates the authentication type.\n         * @param { string } callerBundleName - Indicates the caller bundle name.\n         * @param { object } options - Indicates the authenticator-specific options for the request.\n         * @param { AuthenticatorCallback } callback - Indicates the authenticator callback.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 8\n         * @deprecated since 9\n         * @useinstead appAccount.Authenticator#auth\n         */\n        authenticate(name: string, authType: string, callerBundleName: string, options: {\n            [key: string]: any;\n        }, callback: AuthenticatorCallback): void;\n        /**\n         * Authenticates an application account to get an oauth token.\n         *\n         * @param { string } name - Indicates the account name.\n         * @param { string } authType - Indicates the authentication type.\n         * @param { Record<string, Object> } options - Indicates the authenticator-specific options for the request.\n         * @param { AuthCallback } callback - Indicates the authenticator callback.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        auth(name: string, authType: string, options: Record<string, Object>, callback: AuthCallback): void;\n        /**\n         * Verifies the credential to ensure the user is the owner of the specified application account.\n         * <p>\n         * The credential can be provided in the options, otherwise an Ability will normally be returned,\n         * which can be started by the caller to further verify credential.\n         *\n         * @param { string } name - Indicates the name of the application account.\n         * @param { VerifyCredentialOptions } options - Indicates the options for verifying credential.\n         * @param { AuthCallback } callback - Indicates the authenticator callback.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        verifyCredential(name: string, options: VerifyCredentialOptions, callback: AuthCallback): void;\n        /**\n         * Sets properties for the authenticator.\n         *\n         * @param { SetPropertiesOptions } options - Indicates the options for setting properties.\n         * @param { AuthCallback } callback - Indicates the authenticator callback.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        setProperties(options: SetPropertiesOptions, callback: AuthCallback): void;\n        /**\n         * Checks whether a particular account has all specified labels.\n         *\n         * @param { string } name - Indicates the account name.\n         * @param { Array<string> } labels - Indicates an array of labels to check.\n         * @param { AuthCallback } callback - Indicates the authenticator callback.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        checkAccountLabels(name: string, labels: Array<string>, callback: AuthCallback): void;\n        /**\n         * Checks whether the specified account can be removed.\n         *\n         * @param { string } name - Indicates the account name.\n         * @param { AuthCallback } callback - Indicates the authenticator callback.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        checkAccountRemovable(name: string, callback: AuthCallback): void;\n        /**\n         * Gets the remote object of the authenticator for remote procedure call.\n         *\n         * @returns { rpc.RemoteObject } Returns a remote object.\n         * @syscap SystemCapability.Account.AppAccount\n         * @since 9\n         */\n        getRemoteObject(): rpc.RemoteObject;\n    }\n}\nexport default appAccount;\n",
}
export default FILE;